#!/bin/bash

#if [ ! -f /configscript.txt ];then
#	echo 'file not found'
#	cp /configscript-temp.txt /configscript.txt
#	else
#	echo 'file already exsit'
#	rm -f /configscript.txt
#	cp /configscript-temp.txt /configscript.txt
#fi
cp -f /configscript-temp.txt /configscript.txt

sed -i "s#DOMAIN_NAME#`echo $DOMAIN_NAME`#g" /configscript.txt
sed -i "s#PASS_WORD#`echo $PASS_WORD`#g" /configscript.txt
sed -i "s#ADMIN_PORT#`echo $ADMIN_PORT`#g" /configscript.txt
sed -i "s#ADMIN_SSL_PORT#`echo $ADMIN_SSL_PORT`#g" /configscript.txt
sed -i "s#DOMAIN_NAME#`echo $DOMAIN_NAME`#g" /run.sh
